<?php
     class ImgViewModel extends ViewModel {
       public $viewFields = array(
         'img'=>array('adres','mesa','id','addtime'),
         'skedchpat'=>array('name','kid','num','_on'=>"img.sid=skedchpat.kid"),
         'user'=>array('thump','uname','uid', '_on'=>'img.pid=user.uid')
       );
    }
?>